﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using CUWo.Common.Entities.WoInterface;
using CUWo.Common.Entities.WoInterface.HttpArgument;

/**
 * 创建时间：2014/11/3 15:20:51
 * 作者：yong.blackcore
 * Email：itblackhole@outlook.com
 * QQ：50404503
 */
namespace CUWo.Common.WoInterfaceCommunication
{

    public class NetGetNumberByUnikey : CommunicationBase
    {
        public NetGetNumberByUnikey()
            : base()
        { }

                
        public string GetUrl(string channel,string callback)
        {
            //ArgsBase argsBase = base.InitHttpCommBass<ArgsNetGetNumberByUnikey>();
            //ArgsNetGetNumberByUnikey args = argsBase as ArgsNetGetNumberByUnikey;
            //args.MobileNumber = mobileNumber;
            //
            StringBuilder requestUrl = new StringBuilder();
            requestUrl.Append(base.ServiceAddress);
            requestUrl.Append(base.Method_NetGetNumberByUnikey);
            requestUrl.Append("?");
            requestUrl.Append(string.Format("channel={0}&callback={1}", channel, callback));
            //requestUrl.Append(base.ServiceAddressRequestQueryKey);
            //requestUrl.Append("=");
            //requestUrl.Append(JSONHelper.Serialize<ArgsNetGetNumberByUnikey>(args));
            //
            LogHelper.LogInfo(requestUrl.ToString(), this.GetType(), MethodBase.GetCurrentMethod());
            //
            return requestUrl.ToString();
        }
    }
}
